package com.openweixin.sheknows.service;
import com.openweixin.sheknows.domain.Answer;
/**
 * @author linxiaohui
 *
 */
public interface AnswerService extends BaseService<Answer, Integer> {
	
	
	/**解答问题(判断是否是自己锁定的问题)
	 * @param qID
	 * @param extpertID
	 * @param answer
	 * @return
	 */
	boolean answerByLock(Integer qID,Integer extpertID,Answer answer);
	
	/**解答问题
	 * @param qID
	 * @param extpertID
	 * @param answer
	 * @return
	 */
	boolean answer(Integer qID,Integer extpertID,Answer answer);
	
	/**给答案评分
	 * @param answer
	 * @param uID
	 * @param score
	 * @return
	 */
	boolean saveScore(Integer answer,Integer uID,Integer score);

	
}
